package com.atguigu.yygh.hosp;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

/**
 * @Author: 逸尘风清
 * @Date: 2021/4/5
 * @Time: 16:14
 * 描述：
 */
@SpringBootApplication
// 扫描所有包（包括pom中引入的）中路径为“com.atguigu”下的所有组件
@ComponentScan(basePackages = "com.atguigu")
// 启动注册服务
@EnableDiscoveryClient
// 启动Feign
@EnableFeignClients(basePackages = "com.atguigu")
public class ServiceHospApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServiceHospApplication.class, args);
    }
}
